/**文章接口 */
import request from "@/utils/request";
// 获取文章列表接口
export function getVideoList(limit, page) {
    return request({
        url: `/api/v1/video/getVideoList/${limit}/${page}`,
        method: "get",
    });
}
// 发布文章
export function publishVideo(data) {
    return request({
        url: `/api/v1/video/publishVideo`,
        method: "post",
        data,
    });
}
// 删除文章
export function deleteVideo(data) {
    console.log(data)
    return request({
        url: `/api/v1/root/video/deleteVideo`,
        method: "delete",
        data,
    });
}
// 编辑文章
export function EditVideo(data) {
    return request({
        url: `/api/v1/root/video/alter`,
        method: "put",
        data,
    });
}
// 模糊查询文章x
export function SearchVideos(fuzzyTitle, limit, page) {
    return request({
        url: `/api/v1/video/query/fuzzy/${fuzzyTitle}/${limit}/${page}`,
        method: "get",
    });
}
// 刷新文章不改变浏览量
export function RefreshVideo(id) {
    return request({
        url: `/api/v1/video/refreshVideo/${id}`,
        method: "get",
    });
}
// 批量删除视频
export function BatchDeleteVideo(data) {
    return request({
        url: `/api/v1/root/video/batch/deleteVideo`,
        method: "delete",
        data
    });
}
// 获取已删除列表
export function getVideoDeleteList(limit, page) {
    return request({
        url: `/api/v1/root/video/deleteList/${limit}/${page}`,
        method: "get",
    });
}